package cn.yougou.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * (YgCommoditySpecification)实体类
 *
 * @author 白杰崇
 * @since 2020-12-11 18:57:44
 */
public class YgCommoditySpecification implements Serializable {
    private static final long serialVersionUID = -79246891917879454L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 商品id
     */
    private Integer commodityid;
    /**
     * 商品规格名称
     */
    private String specification;
    /**
     * 商品规格值
     */
    private String value;
    /**
     * 商品规格图片
     */
    private String picurl;
    /**
     * 创建时间
     */
    private String addtime;
    /**
     * 更改时间
     */
    private String updatetime;
    /**
     * 删除逻辑
     */
    private Integer deleted;

    public YgCommoditySpecification() {
    }

    public YgCommoditySpecification(Integer commodityid) {
        this.commodityid = commodityid;
    }

    public YgCommoditySpecification(Integer commodityid, String specification) {
        this.commodityid = commodityid;
        this.specification = specification;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(Integer commodityid) {
        this.commodityid = commodityid;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "YgCommoditySpecification{" +
                "id=" + id +
                ", commodityid=" + commodityid +
                ", specification='" + specification + '\'' +
                ", value='" + value + '\'' +
                ", picurl='" + picurl + '\'' +
                ", addtime=" + addtime +
                ", updatetime=" + updatetime +
                ", deleted=" + deleted +
                '}';
    }
}